import $http from './index'

interface loginData {
    userName:string,
    password:string,
}

//api接口
export const login = (data:loginData)=>$http({url:'/login',method:'post',data})
export const getList = (data:any)=>$http({url:'/getList',method:'get',data})

export const getUserList = ()=>$http({url:'/getUserList',method:'get'})
export const getRoleList = ()=>$http({url:'/getRoleList',method:'get'})
export const getAuthority = ()=>$http({url:'/geTauthority'})
export const getRouter = ()=>$http({url:'/getRouter'})
